package com.emmmya.ocs.modules.system.businessSetting.service.impl;

import com.emmmya.ocs.common.base.BaseDao;
import com.emmmya.ocs.modules.system.businessSetting.dao.BusinessMailSettingDao;
import com.emmmya.ocs.modules.system.businessSetting.entity.BusinessMailSetting;
import com.emmmya.ocs.modules.system.businessSetting.service.BusinessMailSettingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 创建人：咕噜肉IT小店-黑医
 * 创建时间 2022年09月23日 11:24:05
 * 描述：
 */
@Slf4j
@Service
public class BusinessMailSettingServiceImpl implements BusinessMailSettingService {

    @Autowired
    BusinessMailSettingDao businessMailSettingDao;

    @Override
    public BaseDao<BusinessMailSetting, Long> getRepository() {
        return businessMailSettingDao;
    }

    @Override
    public BusinessMailSetting findByKey(String key){
        return businessMailSettingDao.findByKey(key);
    }
}
